package top.continew.admin.req;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import top.continew.admin.system.util.ValidateGroup;

import java.util.List;

/**
 * @program: examstar-manger-api
 * @description: 创建内容分销链用户的接口
 * @author: Xiong weiqiang
 * @create: 2025-03-27 11:39
 */
@Data
public class DistributeContentProductBatchRegisterRto {
    @NotNull(message = "用户不能为空",groups = {ValidateGroup.ReqGroup.SAVE.class, ValidateGroup.ReqGroup.UPDATE.class})
    private Long userId;
    @NotEmpty(message = "登记产品至少要有一个",groups = {ValidateGroup.ReqGroup.SAVE.class, ValidateGroup.ReqGroup.UPDATE.class})
    private List<DistributeContentProductRegisterRto> registerProductList;
}